home *** CD-ROM | disk | FTP | other *** search
- Path: news.cyberport.com!usenet
- From: tangent@cyberport.com (Warren Young)
- Newsgroups: comp.lang.c++
- Subject: Re: Crappy or what? Oualline's C++ book
- Date: Sun, 18 Feb 1996 18:15:01 GMT
- Organization: none
- Message-ID: <312769c7.101309755@news.cyberport.com>
- References: <KRAWCHUK.96Feb15102809@survey.ensu.ucalgary.ca>
- NNTP-Posting-Host: ppp22.cyberport.com
- X-Newsreader: Forte Agent .99d/32.182
-
- krawchuk@ensu.ucalgary.ca (Mike Krawchuk) wrote:
-
- >An instructor in our department asked me to verify some suspicions he
- >had about a book he was considering using as a text - Practical C++
- >Programming, by Steve Oualline, published by O'Reilly & Associates Inc.
-
- Report the problems to them. ORA is very good about fixing errors in
- new printings -- they're more like software than books that way. Just
- looking on the verso of _Using C on the UNIX System_ (the closest ORA
- book at hand) I see four printing updates for "minor corrections" even
- though the book is still technically a first edition. _The Whole
- Internet User's Guide and Catalog_ had five printing updates before
- its second edition.
-
- For what it's worth, the latest (?) C/C++ User's Journal reviewed that
- book and the other new ORA C++ book (C++: The Base Language?). You
- might find the review useful as a second opinion. I came away with a
- feeling that the books were useful.
-
- > const char *answer_ptr = "Forty-Two";
- >
- > answer_ptr = "Fifty-One"; // Oualline says illegal; Stroustrup, gcc says OK
- > *answer_ptr = 'X'; // Oualline says legal; Stroustrup, gcc says illegal
-
- This would be a simple error to correct, and it's obviously just a
- slip of habit. The correct version isn't often seen or used, in my
- experience:
-
- char* const answer_ptr = "Forty-Two";
-
- I showed that to two C coders at my workplace recently, and it
- surprised them because they didn't even know you could do that. They
- didn't even think it would compile until it did.
-
- >The O'Reilly web site doesn't have errata for the book, but I can't
-
- The books are just a few months old. Give them some time to improve,
- to "age". I can think of many first editions that have sucked where
- their second editions (or updated printings in ORA's case) have been
- invaluable.
-
- (No, I don't work for O'Reilly. I just have a dozen or so of their
- books and haven't regretted purchasing any of them in the slightest.)
-
- = Warren --
-